(function () {
  new gVue({
    el: "#app",
    data: {
      title: "模拟vue数据绑定原理",
      name: "吃饭不给菜",
      age: "18岁",
      domStr: "<div>毕业于长江大学</div><div>资源勘查工程</div>",
      tableArr: [
        { title: "测试1", name: "gqg" },
        { title: "测试2", name: "mwc" },
      ],
      imgUrl:'./src/images/love.jpg',
      person:{
        name:'吹牛小王子',
        title:'天老大我老二',
        age:'年芳18'
      },
      username: "gqg",
    },
    created() {
      console.log("this值：", this.data);
      this.age = "19岁";
    },
    methods:{
      handleName(){
        this.$data.person.name = '我老婆莫文聪才“三岁”'
        this.$data.imgUrl = './src/images/tupian.jpg'
      }
    }
  });
})();
